#include<iostream>
#include<cmath>
using namespace std;
const double weight(2.2);
const int conversion(12);
const double transition(0.0254);
int main ()
{
    double feet = 0.0;
    double inches = 0.0;
    double pounds;
    cout << "请输入你的身高:_____英寸_____英尺"<< endl;
    cout<< "请输入英寸数：";
    cin >> feet;
    cout<< "请输入英尺数：";
    cin >> inches;
    cout << "请输入你的体重:____kg" << endl;
    cin >> pounds;
    cout << "你的身高是:"<< feet << "英寸" << inches << "英尺，" << "折合为：" << feet * conversion * transition + inches * transition << "米。" << "体重为：" << weight * pounds  << endl;
    cout << "你的BMI指数为: " << ( weight * pounds ) / sqrt( feet * conversion * transition + inches * transition ) << endl;
    return 0;
}